import { $post, $get } from "@/api/request";


// 获取区域、楼层
export function getFloorsList(data) {
  return $get({
    url: `/eqpt/scene/floor/getListByTag?parentId=${data.parentId}&tag=${data.tag}`
  });
}
// 告警信息列表
export function alarmInfoList(data) {
  return $post({
    url: "/alarm/alarmMobile/listInMobile", // "/alarmEventInfo/listInMobile",
    data
  });
}
// 获取设备下拉框
export function equipmentTypeList(data) {
  return $post({
    url: "/alarm/alarmMobile/getEquipmentTypeInfo", // '/dataInfo/getEquipmentTypeInfo',
    data
  });
}
// 设备详情页
export function getDevicePage(data) {
  return $post({
    url: "/alarm/alarmMobile/queryMobileStatisticsOfEquipmentPage", // "/Statistics/queryMobileStatisticsOfEquipmentPage",
    data
  });
}
// 提交告警
export function dealAlarmInMobile(data) {
  return $post({
    url: "/alarmEventInfo/update",
    data
  });
}
// 告警详情页
export function queryAlarmById(data) {
  return $post({
    url: "/alarmEventInfo/queryById",
    data
  });
}
